﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QMesSocketLib
{
    /// <summary>
    /// Socket消息体
    /// </summary>
    [Serializable]
    public class MessageEntity
    {
        public MessageEntity()
        {
            File = new FileEntity();
            Code = string.Empty;
            Message = string.Empty;
            UserCode = string.Empty;
            this.FormName = string.Empty;
            this.BillNo = string.Empty;
        }

        public string UserCode { get; set; }
        public EnumLib.SocketType Type { get; set; }
        public string Code { get; set; }
        public string Message { get; set; }
        public object Data { get; set; }
        public string FormName { get; set; }
        public string BillNo { get; set; }
        /// <summary>
        /// 文件列表，非文件流
        /// </summary>
        public FileEntity File { get; set; }
    }
}
